import {getData,postData,path,del} from './../http';
export let getDictionaryList = (params)=>{
    return getData('/admin/dictionary/'+params)
}

// 获取全部字典
export let getDictionary=(pagination)=>{
    return getData('/admin/dictionary',pagination)
}
// 添加
export let getOrderAdd=(data)=>{
    return postData('/admin/dictionary',data)
 }
//  修改
export let pathOrder=(id,data)=>{
    return path('/admin/dictionary/'+id,data)
}
// 删除
export let delOrder=(id)=>{
    return del('/admin/dictionary/'+id)
}